﻿namespace WMS.FC.Domain.DomainObject.System
{
    /// <summary>
    /// WMS设置
    /// </summary>
    public class WmsSettings
    {
        /// <summary>
        /// WMS设置 键值
        /// </summary>
        public const string KEY = "WMSSettings";

        /// <summary>
        /// 允许跨域地址
        /// </summary>
        public string[] AllowedOrigins { get; set; } = Array.Empty<string>();

        /// <summary>
        /// 数据库连接信息
        /// </summary>
        public DatabaseConfig DatabaseConfig { get; set; } = new DatabaseConfig();

        /// <summary>
        /// 日志路径
        /// </summary>
        public string LogDirectory { get; set; } = string.Empty;

        /// <summary>
        /// WCS服务地址
        /// </summary>
        public string WcsApi { get; set; } = string.Empty;

        /// <summary>
        /// 仓库编码
        /// </summary>
        public string WarehouseCode { get; set; } = string.Empty;

        /// <summary>
        /// 产线编码
        /// </summary>
        public string LineCode { get; set; } = string.Empty;

        /// <summary>
        /// 空托盘工艺路径
        /// </summary>
        public string EmptyTrayTechnologyRoute { get; set; } = string.Empty;

        /// <summary>
        /// 空托盘工艺工序
        /// </summary>
        public string EmptyTrayTechnologyProcess { get; set; } = string.Empty;

        /// <summary>
        /// 假电池条码
        /// </summary>
        public string FakeCellBarcodePrefix { get; set; } = string.Empty;

        /// <summary>
        /// 语言
        /// </summary>
        public string Language { get; set; } = string.Empty;

        /// <summary>
        /// 数据库查询行数上限
        /// </summary>
        public int DbRowLimit { get; set; }
    }
}
